<?php 
/*************************************************************************************
 *
 *	FileName: page_body.php
 *	Desc    : message writing page
 *	Author  : Seal
 *	Date    : 2009-12-29
 *
 *************************************************************************************/
?>
<?php if( isset($errmsg) && $errmsg->size('write_message') > 0 ) $errmsg->output('write_message'); ?>




    <div class="main_box">
<!--left_bar star-->    
    	<div class="left_bar">
        <!--*********************-->
            
<!--收件箱-->	
			<div class="mail_box" >
                	<div class="mail_box_top"></div>
					<!--orange_top star-->
                    <div class="mail_box_middle">
                    	<div class="mail_box_title">写站内信</div>
				
						<div class="mail_top">
						<div class="mail_write_box">
					 <form method="POST" action="<?php echo edp_href_link(PAGENAME_WRITE_MESSAGE);?>" id="writemessage" onsubmit="return send_mail();" name="writemessage">
											
						<dd> 
						<label>收信人: </label>						
						<input type="text" name="receivers" id="receivers"/>
						<input type="hidden" name="ids" id="ids" />
						</dd>
						
						<dd>						
						<label>我的好友: </label>	
						<select id="friends"  multiple>
						<?php foreach( $friends as $key => $value ){?>
							<option value="<?php echo $value['id']?>"><?php secho( $value['nick'] ); ?></option>
						<?php }?>
						</select>
						<input type="button" value="添加到收件人" class="btn_1" onclick="add_receiver();"/>
						</dd>
						
						<dd>
						<label>标题: </label><input type="text" name="title" id="title" />
						</dd>
						
						<dd>						
						<label>内容: </label><textarea name="content" rows="8" cols="2" style="width: 550px; overflow: auto;"></textarea>
						<input type="hidden" name="action" value="send" />
						</dd>
						<dd>						
						<label>&nbsp;</label>
						<input type="submit" value="发送" class="btn_1"/>
						</dd>
						

						</form>                    
                        </div>
                        </div>
						
			
                     
                    </div>

                    <div class="mail_box_bottom"></div><!--底部边框-->
            </div>

		</div>
<!--left_bar end-->

<!--right_bar star-->
        <div class="right_bar">
		    <div class="right_bar_menu"><!--右侧按钮-->
            	<ul class="right_bar_menu_item">
                   <li><a href="<?php echo edp_href_link( PAGENAME_WRITE_MESSAGE)?>">写站内信</a></li>
                    <li><a href="<?php echo edp_href_link( PAGENAME_MAIL_INBOX)?>">收件箱</a></li>
                    <li><a href="<?php echo edp_href_link( PAGENAME_MAIL_OUTBOX)?>">发件箱</a></li>
                </ul>
            </div>
            
        
        </div>
<!--right_bar end-->        

 

